package com.itheima.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itheima.pojo.pageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 用户认证对象 account_authentication
 *
 * @author guanhuaer
 * @date 2025-03-20
 */
@Data
public class AccountAuthentication extends pageQuery
        {
private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 用户id */
    @ApiModelProperty("用户id")
    private Long userId;

    /** 用户认证状态 */
    @ApiModelProperty("认证结果(0待认证，1通过，2不通过，3智能审核通过，4驳回)")
    private Integer status;

    /** 用户名 */
    @ApiModelProperty("用户名")
    private String username;

    /** 工号 */
    @ApiModelProperty("工号")
    private String workNumber;

    /** 电话 */
    @ApiModelProperty("电话")
    private String mobile;

    /** 邮箱 */
    @ApiModelProperty("邮箱")
    private String email;

    /** 认证类型 */
    @ApiModelProperty("认证类型")
    private Integer userType;

    /** 附件列表 */
    @ApiModelProperty("附件列表")
    private String fileList;

    /** 备注*/
    @ApiModelProperty("备注")
    private String content;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private LocalDateTime updateDate;

            @Override
            public String toString() {
                return "AccountAuthentication{" +
                        "id=" + id +
                        ", userId=" + userId +
                        ", status=" + status +
                        ", username='" + username + '\'' +
                        ", workNumber='" + workNumber + '\'' +
                        ", mobile='" + mobile + '\'' +
                        ", email='" + email + '\'' +
                        ", userType=" + userType +
                        ", fileList='" + fileList + '\'' +
                        ", content='" + content + '\'' +
                        ", createDate=" + createDate +
                        ", updateDate=" + updateDate +
                        '}';
            }
        }
